package grape.attend.rest.user.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 用户假期余额表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户假期余额表添加表单对象")
public class UserVacationSumCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message="用户id不能为空")
    @ApiModelProperty(value = "用户id",required = true)
    private String userId;

    @NotEmpty(message="假期id不能为空")
    @ApiModelProperty(value = "假期id",required = true)
    private String vacationId;

    @NotNull(message="假期余额分钟数不能为空")
    @ApiModelProperty(value = "假期余额分钟数",required = true)
    private Integer leaveSumMin;

    @NotEmpty(message="备注不能为空")
    @ApiModelProperty(value = "备注",required = true)
    private String remark;



}
